
#include<stdio.h>
int main() {
	int high = 0;
	scanf_s("%d", &high);
	int i = 0;
	for (i = 1; i <= high; i++) {
		int j=0;
		for (j = 1; j <= high - i; j++) {
			printf(" ");
		}
		for (j = 1; j <= 2 * i - 1; j++) {
			printf("*");
		}
		printf("\n");
	}
	for (i = 1; i < high; i++) {
		int j = 0;
		
		for (j = 1; j <= i; j++) {
				printf(" ");
			}
			for (j = 2 * (high - 1 - i) + 1; j > 0; j--) {
				printf("*");
			}
			printf("\n");
		}
			
	return 0;
	}

	
